<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<script>
    (function(){
        if(''){
            if (prompt('请输入文章密码') !== ''){
                alert('密码错误！');
                history.back();
            }
        }
    })();
</script>








<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta name="description" content="Elecbyte留下来的能在Windows运行的有sff2png、SprMake2和SndMaker，三个都是命令行工具，命令行提示符的用法请自行百度">
<meta property="og:type" content="article">
<meta property="og:title" content="MUGEN-官方工具使用">
<meta property="og:url" content="https://kfm.ink/cjkf72df30002yvb714nyevqf/index.html">
<meta property="og:site_name" content="白绝">
<meta property="og:description" content="Elecbyte留下来的能在Windows运行的有sff2png、SprMake2和SndMaker，三个都是命令行工具，命令行提示符的用法请自行百度">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://i.loli.net/2018/08/04/5b65615d5d3ed.jpg">
<meta property="og:updated_time" content="2018-08-04T08:18:44.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="MUGEN-官方工具使用">
<meta name="twitter:description" content="Elecbyte留下来的能在Windows运行的有sff2png、SprMake2和SndMaker，三个都是命令行工具，命令行提示符的用法请自行百度">
<meta name="twitter:image" content="https://i.loli.net/2018/08/04/5b65615d5d3ed.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://kfm.ink/cjkf72df30002yvb714nyevqf/"/>





  <title>MUGEN-官方工具使用 | 白绝</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">白绝</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">WhiteJue</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://kfm.ink/cjkf72df30002yvb714nyevqf/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="白绝">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="白绝">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">MUGEN-官方工具使用</h1>
        

        <div class="post-meta">
          
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-08-02T12:54:29+08:00">
                2018-08-02
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      
        <div class="post-gallery" itemscope itemtype="http://schema.org/ImageGallery">
          
          
            <div class="post-gallery-row">
              <a class="post-gallery-img fancybox"
                 href="https://i.loli.net/2018/08/04/5b65615d5d3ed.jpg" rel="gallery_cjkf72df30002yvb714nyevqf"
                 itemscope itemtype="http://schema.org/ImageObject" itemprop="url">
                <img src="https://i.loli.net/2018/08/04/5b65615d5d3ed.jpg" itemprop="contentUrl"/>
              </a>
            
          

          
          </div>
        </div>
      

      
        <p>Elecbyte留下来的能在Windows运行的有sff2png、SprMake2和SndMaker，三个都是命令行工具，命令行提示符的用法请自行百度<br><a id="more"></a></p>
<h3 id="SFF2PNG"><a href="#SFF2PNG" class="headerlink" title="SFF2PNG"></a>SFF2PNG</h3><p>顾名思义，用于分解SFF文件，输出所有PNG文件和一个DEF后缀的文本文件，里面记录了所有图片的组号和索引以及坐标、SFF压缩算法等信息，语法为<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sff2png filename.sff outfilestr</span><br></pre></td></tr></table></figure>其中filename.sff为欲分解的SFF文件，而outfilestr为输出文件夹，两者都支持相对路径，示例：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sff2png chars/kfm/intro.sff kfm/kfm</span><br></pre></td></tr></table></figure>这里需要注意的是outfilestr：<br>如果最后带斜杠的话，如“kfm/sff/”，则会将PNG输出到kfm/sff下，并生成“-.def”<br>如果最后不带斜杠的话，如“kfm/sff”，则会将PNG输出到kfm下，同时生成“sff.def”<br>也就是说，不带斜杠时最后的名字会作为def文件名的名字<br><img src="https://i.loli.net/2018/08/04/5b655bfd4688b.png" alt="sff2png"><br>可以看到生成的def文件有很多参数，这里说下Sprite节，这里为各图片的信息，其中前两个数字分别表示组号和索引，而最后两个数字表示坐标<br><strong>需要注意的是，用SFF2PNG分解1.01版本的SFF，导出的PNG图片可能会有乱色的情况，此时可用参数-fn来强制所有PNG使用SFF某个色表，其中n为色表的序号</strong><br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sffpng -f1 chars/kfm/kfm.sff kfm/kfm</span><br></pre></td></tr></table></figure>则强制所有图片使用SFF中的第一个色表<br>由于只能用一个色表，所以还是有部分图片乱色，这时根据情况选择</p>
<h3 id="SprMake2"><a href="#SprMake2" class="headerlink" title="SprMake2"></a>SprMake2</h3><p>说完SFF2PNG，那么就要说<strong>SprMake2</strong>了，<strong>用于将SFF2PNG分解的文件重新组合回去</strong>，这两个工具一起使用，就可以自由修改SFF文件了<br>官方对SprMake2工具的解释：<a href="http://www.elecbyte.com/mugendocs/sprmake2.html" target="_blank" rel="noopener">点此跳转</a><br><strong>SprMake2有两个版本，分别是2.00（1.0原版主程序附带）和2.01（1.1原版主程序附带），两个不同版本的Sprmake2组合起来的SFF文件的版本也不同，前者组合为SFFV2.00，后者则是SFFV2.01，也就是说，无法生成V1.01的SFF</strong><br>这里简单说下使用方法，通过SFF2PNG分解后，会生成一个def文件，而SprMake2便是通过这个def文件中的配置来组合文件的，语法是：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sprmake2 -o outfile infile</span><br></pre></td></tr></table></figure>其中outfile表示欲输出的SFF文件名，而infile则是def配置文件名，示例：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sprmake2 -o kfm/kfm.sff kfm/kfm-sff.def</span><br></pre></td></tr></table></figure>执行后就能将刚刚分解的kfm重新组合回去，除此之外SprMake2还支持很多参数，详情请看官方文档</p>
<h3 id="SndMaker"><a href="#SndMaker" class="headerlink" title="SndMaker"></a>SndMaker</h3><p>用于制作SndMaker，第一种方法就是直接双击打开，然后根据提示进行即可，是交互式命令行模式的<br>第二种方法就是通过文本文件的形式定义SND文件，比如这样：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">chars/test/test.snd</span><br><span class="line">work/test/mysound.wav</span><br><span class="line">0 </span><br><span class="line">0</span><br><span class="line">work/test/mysound2.wav</span><br><span class="line">0</span><br><span class="line">1</span><br></pre></td></tr></table></figure>其中第一行表示生成SND文件名，然后下面每三行表示一个WAV文件，分别表示文件名、组、索引，配置后保存为TXT文件，比如snd.txt，然后根据自己的情况执行命令行即可<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sndmaker &lt; snd.txt</span><br></pre></td></tr></table></figure></p>

      
    </div>
    
    
    
    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/cjkf72dwf0005yvb7x8eh491n/" rel="next" title="MUGEN-主程序内存表">
                <i class="fa fa-chevron-left"></i> MUGEN-主程序内存表
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/cjkf72de90001yvb70c8cqeau/" rel="prev" title="MUGEN-启动命令行参数表">
                MUGEN-启动命令行参数表 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
    </div>
  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">白绝</p>
              <p class="site-description motion-element" itemprop="description">白绝的个人博客</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">6</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#SFF2PNG"><span class="nav-number">1.</span> <span class="nav-text">SFF2PNG</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#SprMake2"><span class="nav-number">2.</span> <span class="nav-text">SprMake2</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#SndMaker"><span class="nav-number">3.</span> <span class="nav-text">SndMaker</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">白绝</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
